package com.scorpio.quartz.task;

import com.scorpio.agentuser.service.AgentIncomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 定时任务调度测试
 *
 * @author ruoyi
 */
@Component("sysTask")
public class SysTask {

    @Autowired
    private AgentIncomeService agentIncomeService;

    /**
     * 换算代理商收益
     */
    public void conversionAgentIncome() {
        agentIncomeService.updateAllIncome();
    }
}
